#include "ColliderComponent.h"

namespace Fysics
{
	ColliderComponent::ColliderComponent(Object* parent, bool stopWhenSuccess)
		: IComponent(parent), m_StopWhenSuccess(stopWhenSuccess)
	{
	}

	ColliderComponent::~ColliderComponent()
	{
	}

	ICollider* ColliderComponent::GetCollider(unsigned int index) const
	{
		if (index >= m_Colliders.size())
		{
			return nullptr;
		}
		return m_Colliders[index];
	}
}